package decorator;

public class Robot extends Changer {
    public Robot(Transform transform)
    {
        super(transform);
        System.out.println("变成机器人！");
    }
    public void move(){
        super.move();
        this.say();

    }

    private void say() {
        System.out.println("说话！");
    }
}